package com.education.welco.service;

import com.education.welco.pojo.OrderAnswer;
import com.education.welco.pojo.vo.QuestionParsingVo;
import com.education.welco.pojo.vo.ReadQuestionsVo;

import java.util.List;

/**
 * 答案表 服务层
 *
 * @author d
 * @date 2021-03-04 15:45:19
 */
public interface OrderAnswerService {

    //查询答案表信息
    public OrderAnswer selectOrderAnswerById(Integer id);

    //查询答案表列表
    public List<OrderAnswer> selectOrderAnswerList(OrderAnswer orderAnswer);

    //新增答案表
    public int insertOrderAnswer(OrderAnswer orderAnswer);

    //修改答案表
    public int updateOrderAnswer(OrderAnswer orderAnswer);

    public int updateOrderAnswer1(OrderAnswer orderAnswer);

    //删除答案表信息
    public int deleteOrderAnswerByIds(String[] ids);

    //删除答案表
    public int deleteOrderAnswerById(Integer id);

    public int deleteOrderAnswerById1(Integer userId, Integer paperId);

    public int deleteOrderAnswerById3(Integer questionId, Integer paperId);

    //查询该试卷提交人数
    public String[] selectOrderSubmit(Integer paperId);

    //查询答题人答题记录
    public List<OrderAnswer> selectOrderAnswerList1(OrderAnswer orderAnswer);

    public List<OrderAnswer> selectOrderAnswerList4(OrderAnswer orderAnswer);

    public OrderAnswer selectOrderAnswerList2(Integer paperId, Integer questionId);

    public OrderAnswer selectOrderAnswerList3(Integer paperId, Integer userId, Integer questionId);


    List<QuestionParsingVo> selectQuestionParsing(Integer paperId, Integer userId);

    List<ReadQuestionsVo> selectQuestionParsing2(Integer paperId, Integer userId);

}